using System;
using System.Collections.Generic;
using System.Text;

using System.Xml.Serialization;

namespace XMIAddin.Xmi
{
    public class UmlOperation : UmlClassifierFeature
    {
        [XmlAttribute("concurrency")]
        public string Concurrency = SEQUENTIAL;

        public const string SEQUENTIAL = "sequential";
        public const string CONCURRENT = "concurrent";
        public const string SYNCHRONIZED = "synchronized";

        [XmlArray("BehavioralFeature.parameter", Namespace = "org.omg.xmi.namespace.UML"),
         XmlArrayItem(typeof(UmlParameter), ElementName = "Parameter", Namespace = "org.omg.xmi.namespace.UML")]
        public List<UmlParameter> Parameters = new List<UmlParameter>();

    }
}
